﻿
namespace WinEdgeForm
{
    internal static class Program
    {

        internal static CoreWebView2Environment? WebView2Environment { get; private set; }

        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            // To customize application configuration such as set high DPI settings or default font,
            // see https://aka.ms/applicationconfiguration.
            ApplicationConfiguration.Initialize();


            var opts = new CoreWebView2EnvironmentOptions()
            {
                AdditionalBrowserArguments = "--enable-features=msWebView2EnableDraggableRegions", //--enable-features=msWebView2EnableDraggableRegions,msWebView2BrowserHitTransparent
                Language = $"{Application.CurrentCulture}",
                AreBrowserExtensionsEnabled = false,
                ScrollBarStyle = CoreWebView2ScrollbarStyle.FluentOverlay
            };

            WebView2Environment = CoreWebView2Environment.CreateAsync(
                null,
                null,
                opts
            ).GetAwaiter().GetResult();

            




            Application.Run(new Form1());
        }
    }
}